package com.example.principle;

import com.example.principle.model.Dog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Component;
import org.test.autoconfig.EnableAutoConfig;
import org.test.autoconfig.MyImportSelect;
import org.test.autoconfig.Myconfig;
import org.test.autoconfig.Myconfig2;

//@ComponentScan("org.test.autoconfig")
//@Import({Myconfig.class, Myconfig2.class})
//@Import(MyImportSelect.class)
@EnableAutoConfig
@SpringBootApplication
public class PrincipleApplication {

    public static void main(String[] args) {

        ApplicationContext context = SpringApplication.run(PrincipleApplication.class, args);
//        Dog dog = (Dog) context.getBean(Dog.class);
//        System.out.println(dog.getName());
    }

}
